package com.stone.design.mode.state;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Vector;

/**
 * 测试客户端
 *
 * @author Mr_wenpan@163.com 2022/01/13 23:00
 */
public class Client {

    public int reverse(int x) {
        List<String> list = new ArrayList<>();
        Iterator<String> iterator = list.iterator();
        Vector<String> vector = new Vector<String>();
        for (String s : list) {

        }
        return 0;
    }

    public static void main(String[] args) {
        Context context = new Context();
        context.setLiftState(new ClosingState());
        // 开门
        context.open();
        // 关门
        context.close();
        // 运行
        context.run();
        // 停止
        context.stop();
    }
}
